﻿using Microsoft.Extensions.DependencyInjection;
using Panda.DynamicWebApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace FrameWorkCore.DynamicWebApi
{
    public static class DynamicWebApiService
    {
        public static void ConfigureDynamicWebApi(this IServiceCollection services)
        {
            services.AddDynamicWebApi((options) =>
            {

                options.RemoveActionPostfixes.Clear();

                options.GetRestFulActionName = (actionName) => actionName;//Method of use full name
            });
        }

    }
}
